(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/giftlayout.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'f8799wOazdNTo+qg89wE7uc', 'giftlayout', __filename);
// Script/giftlayout.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {
        giftFrameArray: [cc.Vec2],
        signArray: [cc.SpriteFrame]

    },

    start: function start() {},
    init: function init(mousesNum, type) {

        this.node.active = true;
        this.node.getComponent(cc.Sprite).spriteFrame = this.signArray[type];

        switch (type) {
            case 0:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 1:

                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 2:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 3:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 4:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 5:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            case 6:
                this.node.x = this.giftFrameArray[mousesNum].x;
                this.node.y = this.giftFrameArray[mousesNum].y;
                break;

            default:
                break;
        }
    }
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=giftlayout.js.map
        